/* 联系我们页面样式 */

/* 联系信息卡片 */
.contact-info-section {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.contact-info-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-info-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.contact-info-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 18px;
}

.contact-info-card p {
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

/* 联系表单和地图 */
.contact-form-section {
  padding: 60px 0;
  background-color: #fff;
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title p {
  color: #666;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(228, 30, 38, 0.2);
  outline: none;
}

.submit-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: #c41920;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(228, 30, 38, 0.3);
}

.contact-map-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  flex-grow: 1;
}

.map-wrapper .img-placeholder {
  background-color: #f4f4f4;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px;
  text-align: center;
}

.map-overlay h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.map-overlay p {
  font-size: 14px;
}

.company-qrcode {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.qrcode-item {
  text-align: center;
}

.qrcode-img {
  margin-bottom: 10px;
}

.qrcode-img .img-placeholder {
  background-color: #f4f4f4;
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-img i {
  font-size: 40px;
  color: #999;
}

.qrcode-item p {
  color: #666;
  font-size: 14px;
}

/* 分公司信息 */
.branch-offices-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.branch-offices-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.branch-office-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-office-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.branch-office-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.branch-office-card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.branch-office-card p {
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.branch-office-card i {
  color: var(--primary-color);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* 常见问题 */
.faq-section {
  padding: 60px 0;
  background-color: #fff;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question h3 {
  margin: 0;
  font-size: 16px;
  color: var(--secondary-color);
}

.toggle-icon {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-map-container {
    order: -1;
  }
  
  .map-wrapper .img-placeholder {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .contact-info-section,
  .contact-form-section,
  .branch-offices-section,
  .faq-section {
    padding: 40px 0;
  }
  
  .contact-info-wrapper,
  .branch-offices-wrapper {
    grid-template-columns: 1fr;
  }
  
  .company-qrcode {
    flex-direction: column;
    align-items: center;
  }
  
  .faq-question h3 {
    font-size: 15px;
  }
}